import 'package:flutter/material.dart';
import 'package:honeypotflutter/publicBussine/bussine_colors.dart';
import 'package:honeypotflutter/publicBussine/view/bussine_button.dart';

class DeliverResultButton extends StatelessWidget {
  final String? firstTitle;
  final Function()? firstAction;

  final String? secondTitle;
  final Function()? secondAction;

  final String? threeTitle;
  final Function()? threeAction;

  const DeliverResultButton({
    super.key,
    this.firstTitle,
    this.firstAction,
    this.secondTitle,
    this.secondAction,
    this.threeTitle,
    this.threeAction,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: [
          (firstTitle != null)
              ? MGButton(
                  title: firstTitle!,
                  margin: EdgeInsets.only(top: 20),
                  buttonBackColor: MGColors.backColor,
                  buttonAction: firstAction,
                )
              : Container(),
          (secondTitle != null)
              ? MGButton(
                  title: secondTitle!,
                  margin: EdgeInsets.only(top: 20),
                  buttonBackColor: MGColors.backColor,
                  buttonAction: secondAction,
                )
              : Container(),
          (threeTitle != null)
              ? MGButton(
                  title: threeTitle!,
                  margin: EdgeInsets.only(top: 20),
                  buttonAction: threeAction,
                )
              : Container(),
        ],
      ),
    );
  }
}
